import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

export const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: '/welcome' },
  {
    path: 'welcome',
    loadChildren: async () =>
      import('./pages/welcome').then(
        (m) => m.WELCOME_ROUTES
      ) satisfies Promise<Routes>,
  },
  {
    path: 'monitor',
    loadChildren: async () =>
      import('./pages/monitor').then(
        (m) => m.MONITOR_ROUTES
      ) satisfies Promise<Routes>,
  },
];
// angular Module
// @NgModule({
//   imports: [RouterModule.forRoot(routes)],
//   exports: [RouterModule]
// })
// export class AppRoutingModule { }
